<template>
    <div style="text-align:center">
     <h2>欢迎你 {{ username }}登录成功！</h2>
      <img src="">
      <router-link to='/'>
        <span>返回登录界面</span>
      </router-link>
    </div>
 </template>
 
 <script>
   import Cookies from 'js-cookie';
   export default{
     computed:{
       username(){
         return Cookies.get('userName');
       }
     }
   }
 
 
 </script>
 <style scoped>
 
 
 
 
 </style>
 
 